﻿package com.neriksworkshop.lib.colourLovers.items 
{
	import flash.events.IEventDispatcher;
	
	/**
	 * ...
	 * @author Erik
	 */
	public interface IItem extends IEventDispatcher
	{
		/**
		 * Builds the item from previously loaded data (xml or json)
		 * @param	data  can be either an XML object, an object translated from json, or a string (in that case the string is supposed to represent XML data)
		 */
		function buildFromData(data:*):void		
		
		function get id():int 
		
		function get userName():String 
		
		function get url():String 
		
		function get apiUrl():String 
		
	}
	
}